@import "../../../../assets/css/labb-lib";

.labb-portfolio-wrap {
  clear: both;
  overflow: hidden;
  .labb-portfolio-header {
    position: relative;
    max-width: 1140px;
    margin: 0 auto 30px;
    overflow: hidden;
    clear: both;
     display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;

    &.labb-no-heading {
      justify-content: center;
      }
    @include respond-to-max(800) {
      flex-flow: column wrap;
      justify-content: flex-start;
      }
    }
  .labb-heading {
    display: inline-block;
    text-align: left;
    max-width: none;
    font-size: 32px;
    line-height: 44px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #333;
    margin: 0 100px 0 0;
    .labb-dark-bg & {
      color: #e5e5e5;
      }
    @include respond-to-max(800) {
      margin-bottom: 30px;
      }
    }
  .labb-taxonomy-filter {
    display: block;
    margin: 0;
    padding: 0;
    @include align-self(center);
    @include respond-to-max(800) {
      @include align-self(flex-start);
      }
    .labb-filter-item {
      position: relative;
      display: inline-block;
      margin: 0 0 15px 0;
      padding: 0;
      font-style: normal;
      border-bottom: 1px solid #ddd;
      .labb-dark-bg & {
        border-color: #444;
        }
      a {
        font-size: 15px;
        line-height: 24px;
        transition: all .4s ease-in-out 0s;
        display: block;
        color: #777;
        padding: 0 15px 15px;
        .labb-dark-bg & {
          color: #999;
          }
        &:hover {
          color: #222;
          .labb-dark-bg & {
            color: #fff;
            }
          }
        @include respond-to-max(479) {
          padding: 0 10px 8px;
          }
        }
      &.labb-active {
        a {
          color: #222;
          .labb-dark-bg & {
            color: #fff;
            }
          }
        &:after {
          content: '';
          position: absolute;
          left: 0;
          bottom: 0;
          border-bottom: 3px solid #f94213;
          width: 100%;
          }
        }
      &:last-child {
        margin-right: 0;
        }
      }
    }
  .labb-portfolio {
    .labb-portfolio-item {
      .hentry {
        margin: 0;
        padding: 0;
        border: none;
        background: none;
        box-shadow: none;
        }
      .labb-project-image {
        position: relative;
        overflow: hidden;
        img {
          display: block;
          width: 100%;
          transition: all .4s ease-in-out 0s;
          }
        &:hover {
          img {
            filter: brightness(50%);
            }
          }

        .labb-image-info {
          display: block;
          text-align: center;
          .labb-entry-info {
            text-align: center;
            display: block;
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            margin: auto;
            max-width: 100%;
            transform: translateY(-50%);
            }
          .labb-post-title {
            padding: 10px;
            margin: 0;
            font-size: 18px;
            line-height: 28px;
            font-weight: 400;
            color: #fff;
            opacity: 0;
            transition: opacity .4s ease-in-out 0s;
            @include respond-to-max(1024) {
              font-size: 18px;
              line-height: 26px;
              }
            a {
              display: inline;
              color: #fff;
              transition: all .3s ease-in-out 0s;
              border-bottom: 1px solid transparent;
              &:hover {
                border-bottom: 1px solid #ccc;
                }
              }
            }
          .labb-terms {
            display: block;
            color: #f9f9f9;
            font-size: 14px;
            line-height: 22px;
            opacity: 0;
            transition: opacity .4s ease-in-out 0s;
            a {
              color: #ddd;
              position: relative;
              display: inline;
              zoom: 1;
              font-size: 14px;
              line-height: 22px;
              font-style: italic;
              transition: all .4s ease-in-out 0s;
              &:hover {
                color: #fff;
                }
              }
            }
          }
        &:hover {
          .labb-image-info {
            .labb-post-title, .labb-terms {
              opacity: 1;
              }
            }

          }
        }
      .labb-entry-text-wrap {
        text-align: center;
        max-width: 650px;
        margin: 20px auto 0;
        }
      .entry-title {
        font-size: 18px;
        line-height: 26px;
        font-weight: normal;
        margin-bottom: 10px;
        &:after, &:before {
          display: none;
          }
        a {
          transition: all .4s ease-in-out 0s;
          color: #333;
          &:hover {
            color: #888;
            }
          }
        .labb-dark-bg & {
          a {
            color: #e0e0e0;
            &:hover {
              color: #fff;
              }
            }
          }
        }
      .labb-entry-meta {
        span {
          display: inline-block;
          padding: 0;
          margin: 0;
          font-style: italic;
          color: #999;
          &:after {
            content: '//';
            padding-left: 6px;
            padding-right: 6px;
            }
          &:first-child {
            border: none;
            padding-left: 0;
            }
          &:last-child:after {
            display: none;
            }
          a {
            @include transition(all 0.3s ease-in-out 0s);
            font-style: normal;
            }
          .labb-dark-bg & {
            color: #707070;
            }
          }
        }
      .entry-summary {
        margin: 15px auto 0;
        padding: 0;
        &:before {
          width: 35px;
          height: 1px;
          background: #aaa;
          display: block;
          content: "";
          text-align: center;
          margin: 0 auto 15px;
          }

        .labb-dark-bg & {
          color: #999;
          &:before {
            background: #505050;
            }
          }
        }
      }
    }
  }